import React, { Component } from 'react'
import events from '../utils/events'
export class Border2 extends Component {
    componentDidMount(){
        //使用events.addListener 监听 第一个参数写你emit发射的值，第二个写callback
        events.addListener("obj",(obj)=>{
            console.log(obj);
        })
    }
    render() {
        return (
            <div>
                Border2
            </div>
        )
    }
}

export default Border2
